package com.example.flowableoa.controller;



import com.example.comment_oa.response.AjaxResponse;
import com.example.flowableoa.service.IFlowInstanceService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.HashMap;
import java.util.Map;

@Slf4j
@RestController
@CrossOrigin
@RequestMapping("flowableOa")
public class QiDongLiuChengController {
        @Autowired
        IFlowInstanceService iFlowInstanceService;

    @PostMapping("/qidongliucheng/{procDefId}")
    public AjaxResponse selectZhiWeiXiala(@PathVariable("procDefId") String procDefId){
        System.err.println("进来了么？"+procDefId);
        Map<String, Object> variables = new HashMap<>();
//        iFlowInstanceService.staterProcessInstanceById(procDefId,variables);
        return  AjaxResponse.success();
    }
}
